package com.tang.service.impl;

import com.tang.vo.Doc;
import com.tang.websocket.WebSocketServer;
import org.apache.commons.lang3.ObjectUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service
public class WsService {
    @Autowired
    private WebSocketServer webSocketServer;

    @Async
    public void sendInfo(String msg){
        webSocketServer.sendInfo(msg);
    }
}
